package com.lzy.product.apis.impl;

import com.lzy.product.apis.AgentOrderYieldRatioServiceApi;
import com.lzy.product.dtos.agent.AgentOrderYieldRatioDto;
import com.lzy.product.service.AgentOrderYieldRatioService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2018/4/27.
 */
@Service
public class AgentOrderYieldRatioServiceApiImpl implements AgentOrderYieldRatioServiceApi {

    @Autowired
    AgentOrderYieldRatioService agentOrderYieldRatioService;

    @Override
    public Long insert(AgentOrderYieldRatioDto dto) {
        return agentOrderYieldRatioService.insert(dto);
    }

    @Override
    public Boolean update(AgentOrderYieldRatioDto dto) {
        return agentOrderYieldRatioService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return null;
    }

    @Override
    public Boolean remove(Long id) {
        return null;
    }

    @Override
    public AgentOrderYieldRatioDto findById(Long id) {
        return null;
    }

    @Override
    public List<AgentOrderYieldRatioDto> query(AgentOrderYieldRatioDto dto) {
        return agentOrderYieldRatioService.query(dto);
    }

    @Override
    public List<AgentOrderYieldRatioDto> queryAgencyIncome() {
        return agentOrderYieldRatioService.queryAgencyIncome();
    }

    @Override
    public AgentOrderYieldRatioDto selectByOrderId(Long orderId) {
        return agentOrderYieldRatioService.selectByOrderId(orderId);
    }
}
